<?
include 'includes/common.inc.php';


if(!$id) { 
				showmessage('没有找到传入的id值','goback'); 
			}
			// 删除前一版本的静态页
			$data = $db->getone("SELECT * FROM `page` WHERE id = $id");
			//unlink(PHPCMS_ROOT.$page['url']);
			
			// 更新数据库 
			//var_dump($data);exit();
			//$db->update($data,'page',"where id = $id");
			
			// 违禁文字过滤
			//require('commands/includes/get_filter_words.php'); 
			//$data['content'] = filterword($data['content']);
			
			// 给关键字加上文章链接 SEO
			//require('commands/includes/adds_keywords_link.php');
			//$data['content'] = mk_seo_link($data['content']);
			
			// 方便模板调用 例如：$content,$data['content'] 都可以
			extract($data);  
			
			// 生成静态页
			ob_start();
			
			include template($template);
?>